package WrittenTest;

import java.util.Arrays;
import java.util.Scanner;

class Solution {
    public void InitArray(String[] board,String word) {
        int len1 = board.length;
        int len2 = board[0].length();
        char[] array1=new char[len1*len2];
        char[][] array = new char[len1][len2];
        int count=0;
        for (String s : board) {
            for (int j = 0; j < len2; j++) {
                char a = s.charAt(j);
                array1[count]=a;
                count++;
            }
        }
        int count1=0;
        for (int i = 0; i < len1; i++) {
            for (int j = 0; j < len2; j++) {
                array[i][j]=array1[count1];
                count1++;
            }
        }
        System.out.println(Arrays.deepToString(array));

    }
    public boolean exist(String[] board, String word) {
        return true;
    }
}

public class test5 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        Solution s=new Solution();
        String[] strs=new String[3];
        for (int i = 0; i < strs.length; i++) {
            strs[i]=scanner.next();
        }
        s.InitArray(strs,"SEE");
    }
}
